package tech.cyhk.cloud.demo.order.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 使用 @ConfigurationProperties 代替 @Value + @RefreshScope.
 * 集中配置项，减少代码量，同时也具备自动刷新配置
 *
 * @author swd
 * @date 2025/1/21
 */
@Data
@Component
@ConfigurationProperties(prefix = "order")
public class OrderProperties {
    private String timeout;

    private String autoConfirm;

    private String databaseName;
}
